package com.cskaoyan.mapper;

import com.cskaoyan.bean.Comment;
import com.cskaoyan.bean.CommentExample;
import com.cskaoyan.bean.wx.vo.GoodsDetailCommentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author
 * @date 2020/12/5 15:21
 */
@Mapper
@Repository
public interface CommentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    List<Comment> selectBySortAndOrder(@Param("userId") String userId, @Param("valueId") String valueId, @Param("sort") String sort);

    List<Comment> selectByExample(CommentExample commentExample1);

    List<GoodsDetailCommentVo> selectComment(Integer id);

    Integer selectGoodsId(@Param("orderGoodsId") Integer orderGoodsId);
}
